<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">

        <title>优惠信息</title>

        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="js/jquery/jquery.mobile-1.4.5.min.css"/>

        <link rel="stylesheet" href="css/total/index.css" />
        <link rel="stylesheet" href="css/total/button.css" />
    </head>

    <body>
        <div data-role="page" id="discounts">

            <div data-role="none">
                <div data-role="none" class="discounts_head">
                </div>
                <a data-role="none" href="next.html">
                    <image data-role="none"  src="img/arrow187.png" class="img-arrow" />
                </a>
                <div>
                    <image src="img/gift.png" class="discounts-img-gift" />
                    <p class="discounts-p-news">DISCOUNTS</p>
                </div>
                <?php
                require_once 'function/discount.php';
                for($i=0;$i<$num;$i++){
                    echo ' <div class="message_news">
                    <hr style="margin-top:10px;" color=lightgrey width=100% size=2.5 align=left noshade />
                    <image src="img/mao.png" class="message-img-mao" />';
                    echo "<h>".$rows[$i]['discount']."</h>";
                    echo '</div>';
                    
                }
                ?>
<!--                <div class="discount_dis">
                    <hr style="margin-top:10px;" color=lightgrey width=100% size=2.5 align=left noshade />
                    <image src="img/mao.png" class="message-img-mao" />
                    <h id="dis1"></h>
                </div>
                <div class="discount_dis">
                    <hr style="margin-top:10px;" color=lightgrey width=100% size=2.5 align=left noshade />
                    <image src="img/mao.png" class="message-img-mao" />
                    <h  id="dis2"></h>
                </div>

                <div class="discount_dis">
                    <hr style="margin-top:10px;" color=lightgrey width=100% size=2.5 align=left noshade />
                    <image src="img/mao.png" class="message-img-mao" />
                </div>-->

                <hr  style="margin-top:10px;" color=lightgrey width=100% size=2.5 align=left noshade/>
            </div>
        </div>

        
        
        <script src="js/jquery/jquery-1.12.0.min.js"></script>
        <script src="js/jquery/jquery.mobile-1.4.5.min.js"></script>
        
<!--        <script>
            

            $(function () {
                
                $.post(
                        "function/discount.php",
                        {discount: 1},
                        function (data) {
                            $('#dis1').text(data.discount);
                        }
                , 'json'
                        );
            });


        </script>-->
    </body>
</html>